package com.rokyinfo.pdm.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;


/**
 * <p>
 * 蓝牙信息表
 * </p>
 *
 * @author YuanZhiJian
 * @since 2017-01-21
 */
@TableName("d_bluetooth_info")
public class DBluetoothInfo extends Model<DBluetoothInfo> {

    private static final long serialVersionUID = 1L;

	private Long id;

    /**
     * 设备SN
     */
	private String sn;
    /**
     * MAC地址1
     */
	@TableField("mac_address_0")
	private String macAddress0;
    /**
     * MAC地址2
     */
	@TableField("mac_address_1")
	private String macAddress1;
    /**
     * 秘钥
     */
	@TableField("encrypt_key")
	private String encryptKey;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getMacAddress0() {
		return macAddress0;
	}

	public void setMacAddress0(String macAddress0) {
		this.macAddress0 = macAddress0;
	}

	public String getMacAddress1() {
		return macAddress1;
	}

	public void setMacAddress1(String macAddress1) {
		this.macAddress1 = macAddress1;
	}

	public String getEncryptKey() {
		return encryptKey;
	}

	public void setEncryptKey(String encryptKey) {
		this.encryptKey = encryptKey;
	}

	@Override
	protected Serializable pkVal() {
		return this.sn;
	}

}
